package com.tjetc.service;

import com.github.pagehelper.PageInfo;
import com.tjetc.entity.*;

import java.util.List;

public interface MerchantService {

    Merchant selectById(int id);

    Merchant selectByTelephone(String phone);//通过手机号搜索商户
    Integer addMerchant(Merchant merchant);//注册新的商户

    Integer updateMerchant(Merchant merchant);//更新商户信息

    Integer updateMerchantAmount(Merchant merchant); // 专用于管理端更新商户的余额，其他端不可用

    List<Merchant> selectByShopName(String shopName);//根据商户名称关键词搜索商户

    List<Merchant> selectAllMerchant();//导出所有商户列表

    PageInfo page(Merchant merchant, Integer pageNum, Integer pageSize); // 分页查询

    Integer delete(Integer id);

    List<Area> listProvince();

    List<Area> listCities(Integer provinceId);

    List<Area> listDistrict(Integer cityId);

    Area checkProvinceById(Integer provinceId);

    Area checkCityById(Integer cityId);

    Area checkDistrictById(Integer districtId);

    Integer deleteFromIds(List<Integer> ids);
    List<Merchant> diffrerntType(Integer typeId);
    List<Merchant> shopAndDish(String searchWord);

    Integer passMerchants(List<Integer> ids);

}
